<core:SET width='200'>
<core:SET inbox="inbox">

<core:SET title="New Teams management">
<core:WRAP file="/adm/adm.layout.html" placeholder="Content">

<core:include file="/adm/inc/inc.adm.tabs.html">

<h1 align="center"> View the team submission {$name} </h1>

<form id="TeamViewForm" name="TeamViewForm" method="post" action="" runat="server">
<input name="team_id" type="hidden" id="team_id" runat="server">
<input name="page" type="hidden" id="page" runat="server">
<hr>
<core:optional for="msg">
	<span class="message" runat="server"> {$msg} </span>
</core:optional>

<table width="100%" border="0" align="center" cellspacing="2" cellpadding="3">
    <tr align="left">
    	<td class="whiteheader_center">
    		<core:optional for="team_id">
    			View the team (ID: {$team_id})
            </core:optional>
            <core:default for="team_id">
            	Create a new team
            </core:default>
         </td>
         <td class="whiteheader">
            <a href="/{$#app_name}/pub.myprofile.php"> My Profile </a> &nbsp;
           	<html:link url="/">All new teams </html:link>  &nbsp;
           	<html:link url="/edit" param="team_id">Edit the team</html:link>
          </td>
     </tr>

    <core:default for="supress_errors">
    <ERRORSUMMARY id='Summary' runat="server">
        <tr valign="top">
          <td width="{width}">Errors: &nbsp;</td>
          <td class="left">
          	<FONT COLOR="RED">
          		<list:ITEM> {$ErrorMessage} &nbsp; </list:ITEM>
          	</FONT>
          </td>
        </tr>
     </ERRORSUMMARY>
     </core:default>

     <tr>
     	<td class="small" colspan="2">

     	</td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="team_id" runat="server">ID:</label>
       </td>
       <td class="form_field">
        	{$team_id}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="category" runat="server">Category:</label>
       </td>
       <td class="form_field">
        	{$category_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="status" runat="server">Status:</label>
       </td>
       <td class="form_field">
        	{$status_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="name" runat="server">Team name:</label>
       </td>
       <td class="form_field">
        	{$name}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="class" runat="server">League:</label>
       </td>
       <td class="form_field">
        	{$league_gender_show} &nbsp; {$league_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="colors" runat="server">Team colors:</label>
       </td>
       <td class="form_field">
        	{$colors}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="url" runat="server">URL:</label>
       </td>
       <td class="form_field">
        	{$public_url}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="date" runat="server">Date Posted:</label>
       </td>
       <td class="form_field">
        	{$date_added}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="author" runat="server">Author:</label>
       </td>
       <td class="form_field">
         <span class="small"> {$author_show} </span>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="school" runat="server">School:</label>
       </td>
       <td class="form_field">
         {$school_name}, {$school_address}, {$school_city}, {$school_state}&nbsp;
         {$school_zip}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="coach" runat="server">Coach:</label>
       </td>
       <td class="form_field">
         {$coach_name}, {$coach_phone}, {$coach_info}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Top players information:</label>
       </td>
       <td class="form_field">
         {$top_players}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Key players that transferred in:</label>
       </td>
       <td class="form_field">
         {$players_in}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Key players that transferred out:</label>
       </td>
       <td class="form_field">
         {$players_out}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Current year schedule:</label>
       </td>
       <td class="form_field">
         {$schedule}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="level" runat="server">Other information:</label>
       </td>
       <td class="form_field">
         {$other}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="premium" runat="server">Premium content:</label>
       </td>
       <td class="form_field">
         {$premium_show}
       </td>
     </tr>

     <tr>
      <td class="whiteheader_center" colspan="2">&nbsp;</td>
     </tr>

	 <tr>
      <td>&nbsp;</td>
      <td class="form_field">
      		<core:default for="denied_show">
                <input type="submit" name="deny" value="Deny" runat="server">
            </core:default>
            <core:default for="published_show">
            	<input type="submit" name="publish" value="Accept/Publish" runat="server">
            </core:default>

            <input type="submit" name="teams" value="Back to new teams" runat="server">
            <core:optional for="next_available">
            	<input type="submit" name="viewnext" value="View next team" runat="server">
            </core:optional>
            <html:link url="/edit" param="team_id">Edit the team</html:link>
            <html:link url="/delete" param="team_id">Delete the team</html:link>
      </td>
</tr>

</table>

<html:link url="/create" param="team_id">Create a new team</html:link>
</form>